<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-icon">&#xe6a3;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe6a2;</span>
      输入城市/景点/游玩主题
    </div>
    <router-link to="/city">
      <div class="header-right">
        {{this.$store.state.city}}
        <span class="iconfont" arrow-icon>&#xea81;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name:"HomeHeader"
};
</script>


<style lang="stylus" scoped>
@import '~styles/varibles.styl';

.header {
  display: flex;
  line-height: $headerHeight;
  color: #fff;
  background: $bgColor;
}

.header-left {
  width: 32px;
  float: left;
}

.back-icon {
  text-align: center;
  font-size: 20px;
}

.header-input {
  flex: 1;
  background: #fff;
  border-radius: 5px;
  margin-top: 6px;
  height: 32px;
  line-height: 32px;
  margin-left: 10px;
  color: #ccc;
  font-size: 10px;
  padding-left: 10px;
}

.header-right {
  text-align: center;
  width: 62px;
  float: right;
  color: #fff;
}

.arrow-icon {
  font-size: 12px;
  margin-left: 2px;
}
</style>
